<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/struct_info.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/submitter.js"></script>
<script src="${staticServer}/inc/js/infopad.js?2.2"></script>

<link rel="stylesheet" href="${staticServer}/css/consultant_client.css" />
	
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<script src="${staticServer}/inc/js/datepicker.js"></script>

<style>
#SWFUpload_0{
	margin-top: 70px;
    margin-left: -30px;
}
</style>
<script>


var add_Period = function(){
	var id = $("#id").val();
	var center = $("#center").val();
	var name = $("#name").val();
	var sex = $("#sex").val();
	var phone = $("#phone").val();
	var major = $("#major").val();
	var education = $("#education").val();
	var university = $("#university").val();
	var education = $("#education").val();
	var post = $("#post").val();
	var invitations= $("#invitations").val();
	var source = $("#source").val();
	var type = $("#type").val();
	var success = $("#success").val();
	var type = $("#type").val();
	var dateofinvitation = $("#dateofinvitation").val();
	var time = $("#time").val();
	if(phone==""){
		infopad.err("请输入联系方式");
		return;
	}
	
	if(center==""){
		infopad.err("请选择中心");
		return;
	}
	
	$.post("${contextPath}/recruitment/addRecruitment.json", {
		    "id":id,
		    "name":name,
		    "sex":sex,
		    "phone":phone,
		    "major":major,
		    "education":education,
		    "university":university,
		    "invitations":invitations,
		    "post":post,
		    "source":source,
			"center":center,
			"type":type,
			"success":success,
			"dateofinvitation":dateofinvitation,
			"time":time
		}, function(ms) {
		   var msg = ms.msg;
		   if(msg!=null && msg=="1"){
			   infopad.msg("操作成功！");
			   window.location.href="${contextPath}/recruitment/recruitment_list.htm";
		   }
			
	});
}

</script>
</head>
<input type="hidden" id="id" value="<#if recruitment??>${recruitment.id}</#if>">
<body>
	<div id="home_link">
		<ul>
			<li></li>
			<li>&gt;</li>
			<li>组织架构</li>
			<li>&gt;</li>
			<li class="current">title</li>
		</ul>
	</div>

	<div id="container">
		<div id="title">添加招聘反馈情况</div>
		<table id="infotable">
			<tr>
				<th>姓名:</th>
				<td><input id="name" type="text" value="<#if recruitment??>${recruitment.name}</#if>" size="50" maxlength="30" /></td>
			    <th>岗位:</th>
				<td><input id="post" type="text" value="<#if recruitment??>${recruitment.post}</#if>" size="50" maxlength="30" /></td>
				<th>电话号码:</th>
				<td><input id="phone" type="text" value="<#if recruitment??>${recruitment.phone}</#if>" size="50" maxlength="30" /></td>
			    
			</tr>
		    <tr>
			    <th>学历:</th>
				<td><input id="education" type="text" value="<#if recruitment??>${recruitment.education}</#if>" size="50" maxlength="30" /></td>
			    <th>专业:</th>
				<td><input id="major" type="text" value="<#if recruitment??>${recruitment.major}</#if>" size="50" maxlength="30" /></td>
				 <th>院校:</th>
				<td><input id="university" type="text" value="<#if recruitment??>${recruitment.university}</#if>" size="50" maxlength="30" /></td>
			</tr>
			<tr>
			    <th>面试日期:</th>
				<td>
					<input type="text" id="dateofinvitation" value="<#if recruitment??>${recruitment.dateofinvitation}</#if>" rel="DATE::Y-m-d" value="" size="14" maxlength="15" readonly="readonly" class="DatePicker_Icon">
				</td>
				<th>中心:</th>
				<td>
					<select id="center" >
					<option value="<#if recruitment??>${recruitment.center}</#if>"><#if recruitment??>${recruitment.center}</#if></option>
	            		<#if office_List??>
	              			<#list office_List as ls>
	              				<option value="${ls.name}">${ls.name}</option>
	              			</#list>
	            		</#if>
	            	</select>	
				</td>
				<th>来源:</th>
				<td><input id="source" type="text" value="<#if recruitment??>${recruitment.source}</#if>"  /></td>
			</tr>
		
	         <tr>
	         <th>类型:</th>
	            <td>
					<select id="type" >
	            		<option value="">请选择</option>
						<option value="0">投递</option>
						<option value="1">搜索</option>
	            	</select>	
				</td>
				 <th>是否成功:</th>
				<td>
					<select id="success" >
	            		<option value="">请选择</option>
						<option value="0">不成功</option>
						<option value="1">成功</option>
	            	</select>	
				</td>
			    <th>性别:</th>
				<td>
					<select id="sex" >
	            		<option value="">请选择</option>
						<option value="0">女</option>
						<option value="1">男</option>
	            	</select>	
				</td>
				
				
			</tr>
			<tr>
			 <th>邀约状况:</th>
				<td><input id="invitations" type="text" value="<#if recruitment??>${recruitment.invitations}</#if>" size="50" maxlength="30" /></td>
	            <th>面试时间:</th>
				<td><input id="time" type="text" value="<#if recruitment??>${recruitment.time}</#if>" size="50" maxlength="30" /></td>
			</tr>
			
		</table>
		
		<div id="controlbar">
			<input type="button" class="submit" onclick="add_Period()" value="  保  存  " />
		</div>
	</div>
	
</body>
</html>